package edu.nf.project.webs.storeOperation;

import edu.nf.project.entitys.entity.storeOperation.convention.operate.RefundImage;
import edu.nf.project.services.response.BaseController;
import edu.nf.project.services.response.ResultVO;
import edu.nf.project.services.storeOperation.RefundImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author CSY
 * @date 2025 - 06 - 23
 */
@RestController
@RequestMapping("/api/refund-image")
public class RefundImageController extends BaseController {
    @Autowired
    private RefundImageService refundImageService;

    @GetMapping("/list/{rrId}")
    public ResultVO<List<RefundImage>> ListRefundImage(@PathVariable int rrId) {
        List<RefundImage> refundImages = refundImageService.ListRefundImage(rrId);
        return success(refundImages);
    }
}
